package com.fulihui.usercore.request.user;


/**
 * 用户userId绑定微信openId请求对象，有幂等性处理，在set方法全部执行后，
 * 需要调用genKey生成幂等性判断的唯一key
 *
 * @author Created by Willard.Hu on 2016/8/15 0015.
 */
public class BindingWechatRequest {
    private static final long serialVersionUID = 8311896044091776583L;
    /**
     * 微信用户唯一标识
     */
    private String openId;
    /**
     * 用户唯一标识
     */
    private String userId;
    /**
     * 多公众号用户唯一标识，业务场景unionid不能为空，
     * 移动微信appId与公众号appId不同，导致openId也不同，需要用unionid关联
     */
    private String unionid;
    /**
     * 微信用户唯一标识类型
     *
     * @see com.fulihui.usercore.enums.WechatOpenIdTypeEnum
     */
    private String openIdType;

    /**
     * 登录手机号，如果没有传userId，就根据loginId查询出userId
     * 如果传了userId 就依userId为准
     *
     * @// FIXME: 2017/7/20
     */
    private String loginId;

    /**
     * Getter method for property <tt>loginId</tt>
     *
     * @return property value of loginId
     */
    public String getLoginId() {
        return loginId;
    }

    /**
     * Setter method for property <tt>loginId</tt>.
     *
     * @param loginId value to be assigned to property loginId
     */
    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getOpenIdType() {
        return openIdType;
    }

    public void setOpenIdType(String openIdType) {
        this.openIdType = openIdType;
    }


}
